package com.ss.android.image;

import android.app.Activity;
import android.os.Build;
import android.view.View;

import com.ss.android.common.app.permission.PermissionsManager;

final class q implements View.OnClickListener {
    public final n a;

    q(n arg1) {
        this.a = arg1;

    }

    public final void onClick(View arg6) {
        if (Build.VERSION.SDK_INT < 23) {
            this.a.a();
            this.a.a("download");
        } else if ((this.a.mContext instanceof Activity)) {
            PermissionsManager.getInstance().requestPermission((Activity) this.a.mContext, new String[]{"android.permission.WRITE_EXTERNAL_STORAGE"}, new r(this));
        }
    }
}

